import request from '@/utils/request'

// 查询客服人员列表
export function listAgents(query) {
  return request({
    url: '/support/Agents/list',
    method: 'get',
    params: query
  })
}

// 查询客服人员详细
export function getAgents(agentId) {
  return request({
    url: '/support/Agents/' + agentId,
    method: 'get'
  })
}

// 新增客服人员
export function addAgents(data) {
  return request({
    url: '/support/Agents',
    method: 'post',
    data: data
  })
}

// 修改客服人员
export function updateAgents(data) {
  return request({
    url: '/support/Agents',
    method: 'put',
    data: data
  })
}

// 删除客服人员
export function delAgents(agentId) {
  return request({
    url: '/support/Agents/' + agentId,
    method: 'delete'
  })
}
